package group

import (
	"encoding/json"
	"gitee.com/ifinder/wechat-ipad-sdk-golang/base"
)

type GetGroupMembersReq struct {
	QID string `json:"QID"` // 群ID
	WxId string `json:"Wxid"` //
}


type GetGroupMembersResp struct {
	base.WechatResponse
	Data GetGroupMembersData `json:"Data"`
}

type GetGroupMembersData struct {
	BaseResponse base.BaseResponse `json:"BaseResponse"`

	NewChatroomData NewChatroomData `json:"NewChatroomData"`
}

type NewChatroomData struct {
	MemberCount int `json:"MemberCount"`
	ChatRoomMember  []ChatRoomMember `json:"ChatRoomMember"`
}

type ChatRoomMember struct {

	UserName string  `json:"UserName"` // wxid
	NickName string `json:"NickName"` // 微信昵称
	InviterUserName string `json:"InviterUserName"` //群里面别人 如果不修改 则 null
	BigHeadImgUrl string `json:"BigHeadImgUrl"`
	SmallHeadImgUrl string `json:"SmallHeadImgUrl"`
	ChatroomMemberFlag int `json:"chatroomMemberFlag"`
}

func (this *GetGroupMembersResp) FromJson(data []byte) error {
	return json.Unmarshal(data,this)
}
